package org.footito.android.data;

public class TeamGroup implements Comparable<TeamGroup> {
	private long id;
	private String name;

	public TeamGroup(long id, String name) {
		this.id = id;
		this.name = name;
	}

	public long getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public int compareTo(TeamGroup another) {
//		if (this == another)
//			return 0;
//		if (another == null)
//			return 1;
//		if (id == another.id)
//			return 0;
//		if (id < another.id)
//			return -1;
//		else
//			return 1;
		return name.compareTo(another.name);
	}
}
